Added comments to my messy, messy code.