Added new functions to Main: listContacts, joinChannel