add some comments and move the IMAP list class to a module