Added some comments to my code.