Fixed typos and made algorithm to ignore parentheses on word to
definition.

Signed-off-by: Tabor Kvasnicka <kamakwazee@gmail.com>