removed unreachable code (because of gui) and added "list" command so
that we can still get the non-gui version of the todolist in a terminal
window.