update generator to use new docgen method from 1.1.7
Merge pull request #3 from chrisboulton/updated-parsing

update generator to use new docgen method from 1.1.7