files linted and fixed, added Mocha test framework and istanbul coverage