Some fixes, and added fallback if the settings.cfg is malformed

Signed-off-by: C5E3B7BD (Will Apodaca) <C5E3B7BD@gmail.com>