added script for plotting results
fixed bug in makefile

it wasn't setting the debug flag or defining `TEST` for `make debug`
oops