added state transition psuedo code to the tcpd. Still need to break it into separate parts.
separated local and remote into threaded methods. added includes for threading and added thread creation for both threads.