Added 'ls' option for listing all notes in a notebook. Tightened up some 'notebook' related code.