Expand '\n' + '\t' in strings, being stored.
Update the output and output the complete program
Upadted the print-handlers.

When running normally (i.e. getenv("DEBUG") == NULL) don't output
so much detail, and don't add newlines unnecessarily.
Add newlines to output, appropriately