Updated TileMap.generateTiles method alongside some JavaDoc comments