Pretty much functional client at this point. Still segfaulting at end of doc for some reason. Needs to be sorted out before submission