Fished up getting reference client near as working as I can. There are three remaining TODO's, one to fix child threads not ending when told to, the other two pertaining to formating of the output.
forgot to add one of the TODO comments