Extended Compatibility with firebase API
- Fixed todo example
- Fixed Distribution Logic