added phitest (including optimizations via Makefile)