Added LogHelper util class
Fixed LogHelper documentation
Some comments and space
Use LogHelper to check when events occur.