Added comments to almost everything.