fixed error in calculation of hidhid layer grad and reversed order of dh2 and hidhid weights in dh1 calculation