Fixes errors in Main.java. All of them.