changed getWord to return Token

to allow an Identifier object to be returned in lieu of an actual Token