Excellent advice, Luba! Here's an article that gives yet more advice on crate training.
Crate Training
A few tips. Take your dog to obedience school. It's great for bonding, socialization and teaches you HOW to train your dog.
Do not EVER let your new dog off leash until he has a solid recall. Until he learns what "'come" means, he won't do it!
Shelter and rescue dogs are often very insecure and "needy" because they've been abandoned and bounced around, and are never sure they are there for good.
Make a schedule for feeding, walking, playing, etc and stick to it. This will give your dog confidence and make him feel secure when he knows what to expect.
It's normal for a shelter or rescue dog to have a few accidents in the house at first. Make sure you take him out often to the place you want him to "go' and praise like crazy when he does. Never scold or punish him for accidents.