refactoring & fixing
add buildSitemap() public function
retrieving data in batches