Fixed rand and flags bugs.

* regen.Generate() will now use seeded default source if rand.Seed() is called before.
* Perl and newline flags are supported.
* UnicodeGroups are not supported, and will cause NewGenerate to fail.
* Added some documentation.