Fix possible divide by 0 error in squad point calculation; template tweaks