Merge pull request #7 from blabno/exercise3

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