Improve build / run system, add debug task to makefile
Fix bug in implementation of eq fn