Change the way it works : require("mhash") return directly the hashing function.
Improve code parts in the doc