Add nextchar function
Make the reader use nextchar, make peekc return char