removed some unnecessary comments/console.writelines, added more XML