Com branch 1. pull request

I`m finishing my work on the typelib code generator. Please take a look on this request and please tell me what is still missing from your point of view to get merged.