more tests of errors
update patch for latest k.h (closes #3)
add version text
add MMA constrained optimization algorithm