Derivatives and Integrals (hopefully) fixed

I debugged them returning function values. Now they should return proper
values. Derivatives return one fewer values than was put in.
small update

slight changes to appease GitHub