Added comments to most of the code