Made corrections and additions

Updated correct formula and user input for prompts. Added comments on
comment line.