Fixed event logger, did some formatting