add README, license and modify some code