input file name, number of amino acids, and E_min caluclation changed. S_ij added