started adding tests
added tests and refactored
added requirements.txt for heroku