Added javadocs.
Changed the window size back to 800x600 and the button position to the top.
Refactored the source code.