adding more comments to code, making it closer to my own personal standards