implemented add feature, closes #1

(link to ticket)

This implements the add function

Verification
---------------
Run mocha unit tests
you didn't comment the function.