Refactore some code in the D2N class
Remove useless module_config
Trim whitespaces