fix minor bugs and add readme