I've tried to run a couple of examples from your package and got following error:
Error using ==> fmincon
FMINCON cannot continue because...
Variable 'indep_nS' is used as a command/function.
There is probably a mistake in the code with vector of n-S independent parameters in the likelihood function. Unfortunately, I could not find where the problem is.
Could you help please.