Added readWeights() function, tweaked formatting

Moved code which extracts reweight values from the lhe file to a separated function. Also modified some formatting of the code