write readme
write readme, and fix some bugs...