Corrected all depth computations and added hash / other hash computations.