Initial commit of assorted scripts not categorized or checked
Fix light sensor read and add handling of no brick detected
Add thread termination check

Also try to raise plotwindow to front focus (not working)