fix small bugs and add a README