some changes
Merge pull request #205 from twall/com-branch

some changes regarding COM and Variant support