Make util.h repsonible for reading files to avoid duplicated code.
Simplify the argument reading in the parallel implementation.