implemented -H, -Hd -Hf, -D, -Dd, -Df flags

generation of headers and of documentation. not sure if -Hd (no directory) and the like should be errors or not.