Ridding Your Roof of Algae Stains

My 6-year-old roof has some nasty black staining that I believe is a moss or algae. Can you suggest a product to get rid of this and prevent it from returning? Also, is this a do-it-yourself project? Mark F. Westfield,…