Added readWord, renamed some functions