Wrote tokenized fcn.

Resolves #25.
COMMENTS ON FUNCTIONS PLS