added choice between pdb and xyz