Using ng-submit
Some cleanup
Added MIT License