Editorial changes, and add newline to section start/end strings
Now add newlines to open/close strings the right way
comment-off keystrokes till later so can use in metadata
Extensive rewrite and now tests under Python 3 Qt5 yay! Still got TODOs
Added logging at various levels: INFO and DEBUG for normal ops and a few WARN and ERROR ones. Everything tests OK!