updating directive calls to minification-ready format

To support minification, any dependency injected function needs to use "inline array annotation". Check out this page for more details: https://docs.angularjs.org/guide/di

I've also started documenting the data service with ngdoc style docs.