Refinement of protein models