Debug

I have corrected all functions that do not belong.