moved 2 functions
moved var
Check buf-uids, not buffers
Moved a variable
Removed comments
restore maximized frame
Removed wg-switch-to-first-workgroup-on-find-session-file
use wg-open-session
remove unused code