Fitting.py: Cleaned up Gaussian fitting functions, added ngauss.