added cost calculator, improved form, fixed a few bugs