Changed <control> to <loop> in templates; fixes typos