Ironed out type system, added helper class to C++ code (see glulib.hpp)