small tip at the edge the function you use is very ups intensive, every time a radar detects or uncovers an area, the function will be executed which is quite lagging with time.
i mean this function    
script.on_event(defines.events.on_chunk_generated, function(e)
    -- remove everything we don't want
    for key, entity in pairs(e.surface.find_entities(e.area)) do
        if  entity.type == "decorative" or
            (entity.type == "tree" and settings.startup["noRocks_removeTrees"].value == true) or
            (settings.startup["noRocks_removeRocks"].value == true and in_table(entityNamesToRemove, entity.name))
        then
            entity.destroy()
        end
     end