Diatoms grow because of silicates in the water. Make sure you use water that has been run through a DI and I would use a phosphate remover...I use phosgard constantly. You are still going to get diatoms, but it won't be as rampant. Silicates can be added to your tank through your food, additives, etc. The best to remove them is to just scrape them off.