The foaming could be from the algaecide you added. That is a common side effect. (Also one of the reasons that the only algaecide we recommend is Polyquat 60%.)