tools: added more debug
structures.h: added del_use
tools.c: deleted unneeded arrays
Added partial lua support
Added sample lua script