Documented second parameter for setLayers() method

Other fixes