better docs of arguments. implement number of words lookback as an argument instead of hardcoded global