added flexibility to least squares parameters, ability to keep algorithm steps.
Included moving average filter, cleaned up code.
Consolidated functions. New method of interpolating data to a line.
Creating functionality for N-layer flat Earth models.