Corrected XRuleset

XRulset now properly compiling, however there are some issues with the
resolution, causing errors.
correction for compilation
Merge pull request #5 from Xracer/WIP

Wip