added optim script, data file and k-matrix file