function tinsert(t,i) return table.insert(t,i) end function strsub(...) return string.sub(unpack(arg)) end function gsub(...) return string.gsub(unpack(arg)) end function writeto(s) if(s ~= nil) then io.output(s) end end function write(s) if s then io.write(s) end end function readfrom(s) if(s ~= nil) then io.input(s) end end function read(s) local h = io.read(s) return h end function getn(t) return table.getn(t) end function date(d) return os.date(d) end function sort(a,b) return table.sort(a,b) end function strlower(s) return string.lower(s) end