In the first place you did not say what type of puppy this is.
Is she a terrier? if so this is typical behaviour however, when she bites give her a toy, do not allow her to bite you or anyone else.
The barking can be controlled by putting her in a crate when you have visitors, or getting an electronic device that emits a
high pitched noise that will divert her away from the barking. this dervice costs around $25.00 and can be purchased at your
Petsmart or on line.
As to the going potty when she comes back into the house, put her immediately into her crate, and allow her out only to go out
again to relieve herself. Being 5 months old she has acquired some very bad habits, however being firm and not allowing her
to be loose in the house until she learns to "go" outside will soon make her realise that freedom comes with co-operation