Now specifying ranges of repetitions works (like {1,10}, {10}, {,10})
Made the code a little bit narrower
Simple & small refactoring
Some cleaning-up