Uploading a proper documented Main.java file.