fixes wrt to more complex doc structures
Refactor build/Gruntfile.js to make it more generic
add support for dpointer and dtreemap and use master instead of numbered versions
use simpler Regexp. Thanks Asudoh