Added generation functions.
Added file output.