Add tokenizer

Also add util function for printing representations.