Limit dependencies to default libraries

(1) Move LED-writing function one step closer to bare metal (drop call to c_str() method)
(2) Rationalize debug messages (required some reordering)
(3) Change several int variables into bool's