added functions for signal generation reciving noise as parameter