added unit tests, cleaned up controller generator, removed module creation in main.js -- needed for testing