Added some functionality and cleaned up the code

1) Added the ability to scale gaussians
2) Added the ability to add gaussians
3) Added the ability to subtract gaussians
4) Restructured the library to make use of prototypes and make it faster.