Revised commented debugging code
Evaluated returned solutions before calling ligand::save in main