Implemented chat and changed a few minor things