Fix #1 so edit box will clear on hide. Add some comments.