Cleanup and document the commands.