Merge pull request #3 from blabno/exercise2

Exercise 2 Readme and code formatting
Add tests and small fixes
npm test misconfigured #13