code quality improvements
Use AngularJS log service instead of direct console logging