Remove chkerr from mainFludag; update namespace usage