Added more modified curses functions and a function that counts lines