Activated Sludge Process

What is the reason for foaming in aeration tank and mlss turning to blackish color?