fixed erratic midlines and added acknowledgements

fixed erratic watershed midlines due to irregular-shaped watersheds;
also acknowledge contributions by David for his point-to-line script