Personally I'm new to this too, Haven't even started a grow yet.

However, I was talking to an older gent at my local dog park about a week ago. I can't remember exactly what caused it to come up, but he was telling me about a grow from many years ago. He said he had a mold issue (might have been during curing, not sure) He said he misted the buds with Everclear and the mold just shrivled up and died. I guess this could be an issue on a living plant, but I'd think some dry air and direct sun light would likely wipe out most molds. Followed by a good cleaning.

As for small flies. I had terrible fruit flies in my neighborhood this summer, No clue why. However I found a great method for controlling the population in my house...

Take a bowl, and a piece of fruit. Cut a semi large piece of fruit and place it in the bowl (I used a peach). Either use plastic wrap or a clear plastic bag to seal the fruit in the bowl. Then cut or poke a small hole in the plastic and place it where the flies are. Over a few hours the flies will find the bowl and the hole and go in to get at the fruit piece. Then go in put your finger over the hole and take the bowl outside and release the flies. Repeat as needed. After a while the fruit will dry up or mold and need replacing.

When I did this, the little suckers were flying all around me. After a few hours I'd caught over 100 flies. After 2 days I didn't see any except in the bowl.

Hope this helps.