Updated ms3 light code

Updated ms3 light code, not tested for backslashes in JSON