cleaned comments
updated comments
added logger
added logger
cleaned code