Fixed warnings
Tested Command.find
adding a test for testing count of loops
Merge pull request #2 from linzhp/master

Fixed warnings and added more tests. confirmed