Improves SDpath.py

Moved loose functions to a class, added better testing