Fix bugs, add README, modify LICENSE