1. Crate only for comfort--when you're gone. That will be his
secure little cave, & dogs never pee/poop where they sleep. If they do, then something is wrong. If it a wire crate, put blankets/sheets around it (except front) to make them feel secure.
2. Put some pennies in a coke can & put tape over hole. Whenever you see them pee/do something wrong, shake the can at them. The sound will scare them, & then take them outside. Praise a lot!!!!!!!!
3. Dogs have packs. Packs have leaders. The dog needs to know where it stands. You must pretend like you're its mother. Get down on all fours, tower over the dog, & growl when needed. Even when you're playing with the dog, get on top of it like that. That will show it who is boss. I'm not saying be mean to it--just be dominant over it.
I bought a puppy when I got out of college, & I had the worst time. It tore everything up, bit me, & was not house-broken. A friend's mom raised dogs, & this is what they told me. It worked!!!!!!!! I have the most subservient dog--not that she perfect, but she does know her place in the family.
Hope this all helps!!
EDIT: What I meant on crate training for comfort was to not use it as their punishment. That is like their bed...their resting place, so it's not for punishment.