First version of the main file.

sets up JApplet frame.
fixed errors

fixed some errors and changed formatting.