Have changed structure of main method to chose whether to read initial conditions from terminal or from an input file.