remove unnecessary code and add a simple makefile