modified code to return dual variables
updated userguide. pre-emptively bumped userguide version
fixed off-by-one error in matlab
resolved some conflicts