fixed logfile output

removed dupe lines, add newlines
pretty printed log output