Simplify the API.
Merge pull request #9 from velour/cleanup

Simplify the API.