major refactorings to allow for easier reuse of the code for external utilities
improved makefile to build external tools
fixed problem caused when splitting diriterator into util namespace