Initial confidence intervals and regression checking
Add some unit tests, move other tests to examples

Also add a top-level makefile, no gc for examples