added funcs destroyLayer() and destroyLayers()
updated build