Fixed text field, added some comments to wordbase.py