cleaning up generator code for an api
Merge pull request #46 from jdoconnor/gen

cleaning up generator code for an api