Add more comments for the directive and extract constants to the angular.constant