How did the nature of immigration to America change over time, and how did this affect relations between new immigrants and people who were already in America?