If a ligand has a number for a name (e.g. 478) the script fails. This should either be fixed or an informative error message generated