I dont know what to do.

I'm really kinda aggravated. I bought my kitten from the shelter about a couple months ago. She is like 7 months or something like that. She uses her cat litter box all the time...but my hubby smelt pee in our closest and a thing of poop. You know how cat pee smells horrible. Our carpet in out closet is messed up its not all the way fixed and installed into the floor. I dont know if that makes since but I dont know what to do...I'm pretty aggravated. I feel like shes going to keep doing it. Bit she uses her cat box??? please I need advice!!!