We're in the middle of reshuffling our documentation. But this should get you started:
The API Docs
The code