Added web applet html form
Removed unused imports/variable
Added Javadocs
Added handler  for SQL mode

Incomplete
Moved staffDist to its own method
Removed debugging statements
Added a default value system