add the readme file and refine some code

add the readme file and refine some code