scanhash: Document scanhash related methods with comments