Changed templates for easier future integration.
Added some accessors.
Split numeric derivative function.
Added class to automatically slice functions.
Added test with inplace computing.
Restored some commented out tests.
Fixed a warning.
Updated CMake to add include directory.