NEVER use her name in punishment. This will only make situations worse. If I were you, I'd go somewhere where you can watch people from a distance. This might make her more comfortable.
Also, what size of dog do you have, and what breed? I think you told us that she is "smaller" but even smaller dogs can pull, snap, and bite. I know that from experience.
If she's bigger than twenty pounds, I'd suggest that you use a gentle leader on her when you're around people. Use it to get her to focus on you. When she focuses on you, give her a treat.
Teach her the "kennel" command. When visitors come over and she starts acting up like she's scared, tell her "kennel" so she knows that she always has a safe place to retreat to.
Good luck! I'm sure it'll all come together!