Add javadocs to Tile

Also minor cleanup.