Added a ton of logging
Merged log and badconfig in program