fixing minor issues and tests
added .gitignore