minimize code, add makefile
ready for non-crazy testers