changes to linfit & tests, added ipython notebook

added kwarg to linfit for chisquared
added an ipython notebook
added image file of example plot
rewrote tests