add tests, lint, simplify grunt file
add licensing files