fixed char and word count
added outln()
removed static from globals
changed println to outln