added mocha for travis
improve formatting