Move package generation message to main. Remove unused Packages type.
Filter typedefs included in a package by API.
Capture and use the raw C type defintion. Minor renaming of type functions.