Tested and corrected gaussian, added (untested) gradient computation