fixed sign vs unsign comparison in all C++ code and commented out many unused C++ functions, mostly I/O related. test peassed