Added integ1d method (really!) plus changed the innards of checking for a flat pdf, plus various small changes: filename to file_name, removing config option for adding DistDeviate noise to an image, lambda function nosetests, and probably a couple of other things I'm forgetting right now (#306)