Made sure everything works in the tile viewer. Added comments.