Add in a derivative function
Added in integration
Improved error handling
Added in overview comment
Derivatives