changed function names for fit functions.
removed example plot script.
added tests for fitting functions