first step in getting cross section and sample name information from the input file.
removal of unnecessary lines