move code to arbirate num_chains to use into own function
write summary information to directory