added plotting for size distribution of continguous trees and made the data files be written to disk