With Emma, yelling ouch didn't work that well. Even walking away didn't work as the little stinker would follow me and latch on to my pant leg/coat. What I had to do was to gently grasp her muzzle or lower jaw, just enough so that she knew I had a hold of her, not enough to hurt her, and say no bite. She learned quickly she did not like this and stopped biting. Today, I have no problems holding her muzzle in my hand. She does not associate what I did to stop her biting from being handled or petted. Quite often, she will come up to me and want lay her muzzle in my hand, just because. Emma was a singleton and did not have other siblings to teach her about biting.
I never treated when I was teaching her her name. Just called her and when she came or looked at me praised her. Every time I picked her up or petted her I called her by name. She learned very quickly what her name was. With Liam, he was called Slick by the breeder just so he would have a name. Within a day of my getting him at almost 10 months of age, he knew his name.