Added license
Code housekeeping:
- Corrected composer.json with correct dependencies
- Better yaml declaration
- Use filter instead of where for subtree queries