If your puppy is peeing in his blocked-off area or crate, it probably means that the area is too big. If the puppy has room to pee in one corner, and play in the other corner, he probably will. The goal is not to hurt or scold the puppy. Puppies usually learn faster when you spend more time with them. The less time you have, the less time you can teach, and the longer it will take them to learn.
Puppies are also individuals and individuals are different.
So, you thought your puppy was housebroken, but came home to a puddle on the floor. First, you may have been gone too long. If you have a fenced yard, consider getting a doggie door . He is so happy to see you come home, don't scold him for being happy to see you. Instead, place him in a confined area where he can't see you clean it up.