Merge pull request #4 from abcdabcd987/master

bug fix and add step limit
modified