Added global rule file editing + refactored error handling on rulefileloading