add description for hash calculation order
(trivial) change error message more general
Merge branch 'hash-calc-doc'