Add API section.

Very rough attempt, just to get this started.