controller.rb : fixed a bug in parse_log, and update rule_set every 10 seconds
rule_set.rb : added update function