Created global reset_loop() method to defeat infinite-loop detection mechanism.
writeln() is now an alias for print(). log() and print() now return the string they were passed (instead of void). printf() now returns the formatted string (instead of void). Created global write() method (same as print without the CRLF).