Fixed a few parameter bugs, and code passes tri peptide testset.