Automatically uses first language in code_lang to set JXOP-code if not specified, moved code to automatically set JOP-lang