improved crosslink restraint, fixed bugs