Refactor printNE and checkNE

checkNE is now called outside of printNE in new function checkNEs.