I would just add one thing to all the other advice.
Don't make the crate a punishment, it should be a place that he always associates with good things, not getting in trouble.
Don't make the crate a punishment, it should be a place that he always associates with good things, not getting in trouble.