Added gaussian-function, and cleaned it up. Plus did some small things, but nothing major.