fixing the macro call and adding dgx to library
start of generic dgx init and new
start of test for dgx
start of dgx free
setting dgx order and geometry parameters
Generalizing the geometry stuff.
(re)implementation of the geometry information. Not totally arbitrary dimension,
and will throw error if dim > 4