Document management commands

Fixes #1