Add test suite, fix a mountain of small errors.
diff --git a/.gitignore b/.gitignore
index b4479a6..df66a77 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@
 CMakeCache.txt
 CPackConfig.cmake
 CPackSourceConfig.cmake
+*.cmake
 Makefile
 *.bin
 *.dump