Added comments to explain why I did what