add comment and use command-line parameter for minimum number of rules