added method for generating noise with a power law spectrum