Add dump function (which does nothing yet)

Also took chance to start documenting module.
Merge remote-tracking branch 'rvirding/develop' into develop