Changes after Tester presentation.  Made Kernel function (like bigmat in MeganD's code).  Added perturbation, plots etc.