added coded to verify correct number of arguments was supplied. if not, then display error message and quit program