add readme and move the codes around