finished script to add tokens for a novel