Added Client Monitor, Commented some code, thread cleanup funcs added