Ordered the function definitions to coincide with their calls in the main section.
Changed argument_input() to have an exit in its loop.
Removed useless headers.
Made some wild and crazy changes.