Fixed bug in Layer.set_tile(), added docstrings