i have two tanks. One being a main tank, and one is a shrimp tank. about 2-3 weeks ago i bought some plants (dwarf sag, hairgrass, watersprites and java moss) when we first got them, they already didnt look so hot, but being as impatient as i was, i put my sags and my java in my tank. soon, the java started to die and the sags started to brown and got black spots. at this time, i had one albino cory, and two pygmy cory's. about a week later, i bought a ninja and a two more pygmy's. also, m shrimp tank had already been cycling for weeks, and before, my main tank was being cycled too. but anyways, my ninja didnt look so happy, he jsut sat in the water sprite not doing anything. but then i did a mass trimming of my sag's and removed all my java moss and put it in my shrimp tank. i hoped that the shrimp would help heal it... instead, both my tanks started to recycle. both tanks had about 40ppm of nitrties and my ninja seemed to almost be dead. and in my shrimp tank, there was also 40 ppm of nitrates. Somehow, the shrimp tank seemed to recylce itself instantly after i removed the java moss. both tanks now have about 5-10 ppm of nitates. and no nitrites. all my shrimp are now in my shrimp tank. the acidity is about 6ish in both tanks. the shrimp seem to be scratching itself alot near its tail. the ninja looks 1000x beter than it did before. yesterday, the ninja was lying there, twitching. today, he still has a bit of energy to move around very slowly and the same iwth one of my crystals.
overall, my questions would be
-is there a way to speed up the healing process?
-by raising the ph will the shrimps not scratch themselfs?.
-is there any way to get rid of algea? my corrys dont seem to be doing it.
answers will be read no matter how long they are

i will reply as soon as possible with any answers