Adds API docs.
Merge pull request #23 from jmeas/api

Adds API docs.