Document pre/post commands better

Fixes #398