Added code for reading Lux, setting power and ensuring root privs