Refactored Sitemap generator to be more object-oriented.