add gruntfile, code linted, next step publishing tests
now linting is correct, prev version brokes the algorithm.