Effective waste water purification can be achieved by using sand + charcoal powder layered in equal thickness of about 2 feet each. Above these two layers you can plan for gravel + soil of 2 feet thickness. This layered in a pit of 8 feet depth, 3 feet each of length and width. Allow the waste water to flow down the pit. Leaves and seed white kernel cannot serve to filter waste water on a megascale.
E.coli will be under control and below the safe permissible load. Biological control of these harmful organisms will eventually occur, once other dominant soil sheltered organisms multiply in number and diversity. Soil is an excellent and powerful biofilter. Believe in its ability.