Updated Main, so it uses log for for the new initializing method.

 - Rewrote the loop to use the logger instead of System.out.println()