Created html form
Removed document.write functions. Updated all calculations