minor cleanup
problems now print on one line
some cleanup