makeRepgrid function

Make a new repgrid object.