Fix inaccurate return value in doc
Add docs for learning functions, fix typo
Document replay_merge_history function
Update UCM docs
Update docs for merging nodes
Add docs for merging functions
Add doc for node splitting
Document functions to extract segmentations

... and boundary maps.
Document functions for orphan analysis
PEP8, fix whitespace errors