write pdb and have chain number passed in add_component_pdb