Fixed a ton of memory leaks due to not deallocating pointers.  Should be much better now.