added demo application
added support for multistage text input