add neccessary comment for Script_voc and add device setter for gpu to avoid mem issues