Add option parsing to parallel.c
Reimplement main using new struct options.