Added isUDP to lua functions, documentation and example script