refactored new_data(); added data.new(string)
added support to Lua 5.2 and 5.3