Main.hs: read inputfile and call all processes in the pipeline