testing code.  finished adding derivatives to appropriate files (but still need
to refactor and test).  Working on improving the constraints interface.