Add some docs
Divide the code into sections
Add a bit of display to the end, even though we'll never get there
Tidy up input handling a little
Upper-case the names of constants
Reformat code and add comments - no substantive changes
Solve the quadratic