Added hash method and documentation