fix merge conflicts
add lots of debug, some enablement of lmwg3. will need serious cherrypicking to move to devel. fixed some conflicts.
fixing derived variables. 1, 2, 3 done. 3b next. most code from Jeff examples
add set 6 group support (doesn't work yet though)
functionalizing set 6b/3b