Added rough versions of superclasses.
Moved tokensToGrams() to child classes.
Implmeneted superclasses. Needs cleaning up but works. Graph changed... I'll fix that when I do unit testing.