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.

- Changed my eclipse java formatting from tab to spaces.
- How can I merge my stuff with the changes in the master tree?