Added Caret listens

The text box will listen for text as it's being typed. also added javadocs