data download function renamed
using new data function, curve fitting outsourced
return calculation function started
nancumsum added from file exchange