Updated TileSource

Fixed class, added tests + comments