Added comments, changed allocation technique for pointers to mailboxes.