front end for maxit: ref #293, #262

front end changes for issues #293 and #262. Matlab code still needs to be updated before this is merged.