add readme and fixed some bugs