Remove a use of global window_start/end
Slightly less confusing window logging
Separate logging into section
Combine forward and backward code, removing duplicate
Function to change window
Save window in own table and remove global variables for window_start/end
Simpler logging of window position
Bit of tidying and commenting
Minor indentation fix
Read mode
Remove broken max/min of strings with numbers in them for alternatives