Fixed a minor bug and modified .gitignore