Add example user-defined commands to the manual

Inspired by GH #121, GH #65 and GH #74.