adding Makefile and simplifying process