Improves API documentation.

Coses #1.