Every time the dog poops in the house you need strict punishment. Tell the dog that it is bad what he has done. After a few weeks of doing that, the dog will eventually get the hang of what goes on. This took a couple weeks with my dog. but now she nvr goes in our house.
You can't potty train a puppy quickly. You could possibly stop the peeing and pooping if you use some puppy training pads. There is this stuff in wal-mart that is like a spray you can spray on stuff that you don't want the puppy to do his business on (or that you do want him to do his business on) i don't remeber, long time since i had a puppy.
Make sure you tell the dog when it has done something bad, using a strong voice but within a three second basis or it won't know what it is being punished for. but everyday it does something right like poop outside make SURE you reward it and in a three second basis! Have fun with your dog and good luck