fixed #59: rename_tokens() now updates .tokens list
minor: fixed variable in docstring