Changed to print program output to stdout without extraneous output.

Minor other cosmetic tweaks.