added .gitignore file and changed minor code