Changed output to use whole lines (no more partial lines that start with ":").
Fixed glitch that caused mainLoop to stop blocking and run-away loop (possible cause of high CPU errors).