Fixes #131 Supporting reverse-model generator command

- fixed #131 Supporting reverse-model generator command
- fixed some existing bugs in controller generator