Added debug/release to makefile
Fixed bug where regression.d would segfault on release build
Additional safety for tree generator
Fix typo