Converts generator and submission button into objects. Streamlines user ...

...input recognition. Also adds additional output messages. Adds comments and adjusts whitespace.