Fixed code so it computes information the correct way. Also added some directories to gitignore.