Added new config parsing
Cleaned debug module