Changed noise functions and added smooth noise function