lots of cleanup of unused code and removal of all output using puts printf fprintf
remove commented out code
move from extending Thread to implementing Runnable