Refactor sentence_state and parse_sentence_tokens

got rid of unnecessary variables