Added generateStubs

Fixes #115