Revise API implementation

https://github.com/gregwym/fruitex/blob/api/API.md