More precise handling of adjustment layers; add some JSdoc to the DOM layer group change methods