Just added some comments to the code

This is just a version that I cleaned up a little and added comments to