less typedefs; fixed all warning except from that lua overflow thing;