Finished Assignment

Finished the assignment and went back to clean up some things in
previous code. Added alerts telling the user the results as well as
printing to the console.