The folding of an enzyme: I. Theory of protein engineering analysis of stability and pathway of protein folding