Wrote tokenize function

BIG STUFF LATER