Added short comment
Add better validation to layers.
Stubs for rule classes
Basic initializers for rules classes
Stub out some further parsing functions for sub-parts of rules.
Added parser for tilestate
Added a docstring