refactore promise
split readme in doc/