zavier98,
I agree with jproj, your 'popping' sludge is probably due to denitrification and the RAS a/o WAS should be increased. As to the foam problem - you need to take a closer look at the activated sludge, like through a microscope. The foam may be caused by various things including...