All pieces of advice added. Replace console with log mssages
log4g added