added mocha install and fixed typs