added diag output to simplex, working on toy test script to test simplex fit and errors and help with debugging outputs