Updated appendConfig; Renamed global log var; Fixed debug statements