added comments and loggers