added timeout logic and interface for looking up word, close issue #8