Made server multi threaded and modified response class