optimize the loops
update README documents