add makefile and fixing relative import issue