multi thread code for serial port
code cleanup
move junk into the junkyard.
changes for PD map now compiling.