Fixes #3 and fixes #4: document the tiles structure and use size.x/y.