Major overhaul, moved output code to ApiDocWriter, improved
return/parameter type recognition dramatically.