refactoring for greater modularity; some reorganization
started Dsupport for DSN6 (not working yet), maps with origin not at (0,0,0)
forgot to check in files