finished cleaning up stuff. Ready to add D > 0 iterations