Add documentation for "type".

Closes #75.