remove unnecessary code and improve readme