Both US presidential candidates spent much of their last day in battleground Pennsylvania, courting the last of undecided voters, and Puerto Ricans.