Create Generate.php

Initial commit of generation class.