cleaned up and fleshed out geom.h/geom.cc and preparing to add bounding