Stubs generation refactoring
Fixed stubs building
Fixed stubs class extending
Merge pull request #257 from nkt/fix_stubs

Fixed stubs