data input tcp server now accepts json as input.Also debugged. Ready to receive data, cleanup data, w.e