Some cleaning. TODO: read number of variables from part 0 only and broadcast the information instead of reading the same info from all the parts.