adds site map generation. corrects a few wrong indexes errors