Fixed the BIG /ds leave Bug!

and added some Debug functions for me which will be deleted with teh
first official release