More documentation. Also reseting the digest on genHash... methods that take parameters