Optionally generate docs for undocumented declarations

Closes #129. Please review @juangamnik and @segiddins.