fix bugs and edit readme