Made some changes in window to try and resolve why wire doesn't draw on pointer-down
Changes following code review including... WHITESPACE REMOVAL SHOCKER. LINE ADJUSTING SHOCKER. Also a few functions adapted for efficiency/neatness/user-proof. @tlear to make remaining changes (marked *) if possible, else I will do after collections.