Merge pull request #8 from blabno/exercise4

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