add readme and fix small bug