added rotation to grid maker. only display first and last points