Added some repetition detection

Fixes #4

Also, the whole `require 'shamazing'` in the bin script thing wasn't working out for me, which I think has to do with having shamazing installed alongside the developer version.  I wasn't sure what to do there, so I suppose you can cherry-pick around that if you want.