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

Simplify the API.