some bug fixed
Documentation improved