Add type documentation to docgen

Fix #83