fixes #15, added docs

- fixes #15 ($digest already in progress)
- added docs using ngdocs