Simplified code.
Corrected missing receiver.
Added some new utility methods. Simplified code.
Improved ensure_hash method.
Fixed test of old methods.
Tested new methods.