Updated documentation.
Implemented policy detection in statsgen.
Statsgen is now free of regex to speed things up.