update readme and refactor insert element