fixed bug with compiler
misc fixes
added error message for when using an object in a rule that hasn't been
assigned a layer
Merge pull request #122 from increpare/dev

Dev