trying to get cpp and python to agree
added debug tests to cpp
debugging difference between cpp and python code
change loop to skip repeated ligands