Added settings include in header for DEBUG define, corrected array usage