Add some docs for newly exported functions
Merge pull request #2199 from alexlarsson/dm-docs

Add some docs for newly exported functions