Added chat notifications when users join and leave, properly checked for users leaving in the loop in UserThread, minor code improvements.