Revert "Revert change for testing..."

This reverts commit c2bd179ad5fabc047b596af6460f4b272e41d122.
Disabled CONFIG_DEBUG_FS and corrected all needed code for that.