The script is beginning to take shape. analytical model functions added and am beginning to test fitting