Fixed template print functions and exceptions

Also removed old/dead files
Merge pull request #35 from zackthehuman/master

More code cleanup GCC