fixed and ensured normalization is accurate
added an option for randomized intensities