added newline separators to log, more documentation