Added salt functionality.
Update mocha tests.