Added extractligands.cpp