Cleaned up main and validateInput functions

Main is now only used to call functions, atoi conversions are now being
handled by validateInput, required parameters have been added to the
function.