adding appender to the logger
many bugs correction