Few arrangements, some refactoring and added classes ChatRoom and User to store vital information