fixed memory leak
fixed syntax in some Python scripts;
fixed name of kernel
fixed assertion when running Lua code