refactor the cli examples in /doc and fix a small bug in todos_controller