wip for windowed GE
Refactor functions
refactor
docs
docs
Fix refactored code