Ruleset saving/loading and bufixes