It's a difficult situation - we have a cat named Max, who came into our home after my beloved Springer Spaniel was put to sleep due to kidney failure.
He's a great, affectionate animal, however he also had started sparying and pooping outside his litterbox, it turns out there were issues like for instance he wasn't fixed.
When we did get him neutered, the problem didn't stop there - the carpet was already soiled, he could still smell the odor so it didn't matter.
Other animals he could smell, see or found to be a threat also caused him to mark his terrority. We finally called a professional carpet cleaning agency and they steamed the entire section where Max had been going.
Since then we've changed his litter; went to vet recommended, special cat food and this - so far seems in combination is working.
Max no longer has the urge to do either outside his box, we've even kept the litter to a certain level, he seems to find it easier to go without having to scrunch his body down.
Sometimes it takes awhile before you find a method (or methodes) that work.
As far as his being mean to the girls - that is a strange behavior in itself. I would take him to a vet and have your cat checked out.
Btw, no matter how much you scrub and clean - the odor of cat urine will NOT simply vanish; you should tear up carpeting and use a special oil based solvent -- I can't, at the moment remember the name, but any vet could tell you -- or any place like Pet Supply Plus etc.