just wrote function ncursesOutput and moved the output of smallOutput() and calcSums() to the ncursesOutpu() function