added logging to the Main.class