First commit

The regrid generator and documentation.