fixed activity vs block issues, xml file now writing