Updata the code and user manual