Spectrum reduce

Draft of code to spectrum reduction via intgration
```
        raise ValueError("Independent variable must be monotonically "
                         "increasing. Erroneous values found at x-value "
                         "array index locations: {0}\nwhere the x-values "
						 " are: {1}\nand the y-values are: {2}"
						 "".format(error_locations, 
					               x_value_arr[error_locations]
								   counts[error_locations]))