Made fitting a standalone package. Organized the fitting.py structure.