Document module and class api, closes #16.