Fixed template scoring and added back in filtering to article similarity code