What is this critter?

I treated the tank with Potassium permanganate. Brought the tank down to 50 litres and used .142 dry grams of PP for 30 min. The water was yellowish/brown when done instead of bright purple.
Thought this may have killed them but after the treatment I have seen these come out at night darting away from the light. How I noticed something was wrong in the first place was the pleco's were all hanging around the top part of the aquarium. Ok at night but they were doing it under the full lights.
Did I use the right measurement to dose?
Thanks
sl