Support distributed studies; add zip; improve study sorting; improve logging