First attempt at an API doc. Still in progress.