The flys are probably fungus gnats they look like mosquitoes to me but smaller. Thats a sign of overwatering. Id suggest letting your coco dry out a little more between waterings and put some play sand on top inch or two of your coco. Be careful when u water with sand just to prevent it getting washed away, water slowly. The larvae will crawl through and cut themselves up. Adult Fungus gnats start flying when they are at a good population. Id also spray something with spinosad its a nerve agent and will prevent them from eating or drinking. You will have to do a followup soray 3 days after to make sure you get the larvae that hatch. You can keep blue or yellow (google which color theyre attracted too more) sticky traps to catch the adults. As far as your leaves thats another pest all together o believe the first suggestion was right. Not sure how far along you are or how close going into flower but you shouod find something that is systemic (will absorb into the plants tissue) so you can kill whatever is inside eating it. Be careful doing this too close to flower because it will end up in your final product if you do it too late