added a user interface and got word dictionary part of it to work