Some comments and minor bugfixes to TextField.