PageInFrame upgrade

1) Added comments with examples how to use it in page and in grid.
2) Fixed some bugs in gridMode.