add Makefile and switch from file dump to tree