Document all public functions

Fixes #11