add Makefile.
fix acreate bugs.