Fixed Memory Leaks

No more pointers. Yay? Works, but is incredibly slow on my pc? not using
100% CPU though.
Final Version Going to Presentation
Merge pull request #11 from fireland15/master

Final Version