Added validation….I think, and added comments to each line of the code. Assignment complete.