API

Closes #5.