Add doc; general cleanup.
Fix edoc generation problem.
Add documentation.
Merge pull request #93 from basho/csm-refactoring

Add doc; general cleanup.