added checkpoint and backup methods to tokenizer;