Cleaning up cpp code for illumination correction
To fix:Debug code to write files has enum comparison. WIP commit