More foreach loops introduced to Notepad_plus.cpp and Parameters.cpp/.h also corrected a typo on a variable.