Add makefile. changes to make code work half-ok.