added coralErrorFcn, which is default for the solver struct, and meanAP to the toolBox