code re-write, added functionality for setting brightness, lamp
parameters can be also set through node input