Document methods.

Fixes issue #4.