added and adapted extract_tokens to process text file, extract tokens and generate raw X and windowed X matrices