fixed functionality, added .gitignore