Update PolyGrid.m

Fully functioning PolyGrid main file.