keeping track of sites better; removed trailing tab error; output seems to be correct now