Normalized h, added search for smallest singular value.