Added Comments to logger class
added some debug statements