added grunt build and initial library code