Add and document toDfa and minimize methods
3.0.1