Reformatted some code, Renamed AWGN function, and edited comments