First stab to document this module.

Some parameters left to document, probably needs some cleanup.