lightly edited version of Christopher Potts' code
Version with URL regex
Fixed URL regex
Version with Potts' tokenizer
Typos
removed unused inherited code
Fixed hydrate function