Refactoring of automaton package.
Refactoring of regex package.
Refactoring of text package.
Refactoring of text package.
Refactoring of probs package.