Modified css tile element

removed an unnecessary div wrapping the tiles.
Added some debug messages to the encoding process.