Needed to declare bdebug as a global variable
Need to define qorder variable
Need to set toppath to avoid warning
Use pdo for mp distance calculations
Merge pull request #214 from DanielKinsman/issue200

Issue200