Refactor & rename functions & varriables. Add functions for attenuated calculations
Fix noiseGenerator function