Light to investigate (read) and operate (write) molecular devices and machines