Moved some things around, shouldn't change anything
Factored genBubbleNoise into several smaller functions