add endfeature
Merge pull request #3 from chusnen/master

add endfeature by @chusnen