Finishing things up

-Deleted unused variables
-Added more comments

-Created a loop in main method that checks to see if input is valid