>>I was never quite sure when to "tu" and when to "usted"<<

When I was learning French at school, I was taught that "tu" was the familiar form of address - to a friend, peer, or sometimes to one who was perceived as "inferior" (a servant, a student, etc.)

"Vous" would be the opposite - to one's superior.

I suppose the same rule would apply to Spanish.