Update LDR

moved variables in the setup fn to global variables, did some more communication stuff w/ global variables.