Curve fitting

This is the curve fitting .ipynb put in a .jl file for ease of use.