Fix windows printing.  Drop log flag HashSet for simple boolean field

Search input strings for "\n"; indexOf("\n"); split("\n").
Build output strings with NL; append(NL)+NL;
Use StringBuilder instead of StringBuffer (lighter, faster).
Dump logged exceptions to stdout also.
Also reflow some comments.