Added a tester for tof gates and a Makefile to clean up