Code Commenting

Code in "logger.js" has been commneted and slight modifications for
better readability