Added thing to test for memory leaks/double-frees
Added more testing
Improved test bed
Merge pull request #3 from wyager/master

Added test bed and leak checker