Clean up Hash class and update comments