Added more comments to main and removed some things we didn't use