generate vdocs a bit more sophisticated

I leave this here for some comments.
This is supposed to fix #135