implemented the -H flag
implemented -Hddir and -Hffile flags
implemented -D -Dddir and -Dffile flags