addeed rules tree and refactored project
Merge pull request #2 from abukurov/feature/rules-tree

Added rules tree and refactored project