add loop mode
refactor
Merge pull request #3 from CicholGricenchos/master

重构