File exists checks, Gaussian kernel fixed.

Test functions updated for fixed kernel, function for checking whether two doubles are equal to within some epsilon value.