pdist tested, inter-modular data dumps added, and wait func tested