General fixes. list() added.

Some general fixes as well as an implementation of list() added, which
lists all of the messages waiting to be read by the user "u" (in command
list u).