refs #10384 Cppcheck warnings
refs #10384 C++ warnings
refs #10384 Various modifications to satisfy different analysis tools

Modifications related to different error calculation formula.
Merge branch 'feature/10384_flatBackground' into develop