Improves API documentation.

Closes #1.