Several changes. 1. fixed some simple corner case bugs. 2. Added tests that should automatically run when running Valgrind's simple tests. 3. Integrated into Valgrind's automake infrastructure