moved config object outside the angular.module
popup comments
removed unused this.$get parameters
fixed refactoring errors