Fixed issues in Grid. Now if nx and ny are given, it will return
a grid with that many cells. force_square decides if it is
the biggest square grid that will fit the document, or if
rectangular cells are used to fill the document completely