Added homology restraints modified from Pawel and Magda's code