Added twitter class. fixed null pointer in messagesystem.