Add list command for viewing todos, refactoring