reworked geometry calculations to match abstract branch
changed debug routines to match abstract branch
still works for cavity.INS
debug now provides reference for abstract branch