Implemented text input. Closes issue #5