Renamed nHash to nH
Added comments + fixed error