Population sumation now writes to file in output