grid

added some simple changes to print lines