Refactor calculate_intensity_from_spectrum
This method is implemented really convoluted. Clear up the implementation and add more descriptive comments.
This method is implemented really convoluted. Clear up the implementation and add more descriptive comments.