implemented multi-threaded chatting and basic functionality of commands