Cleaning
Added load_rules function