DIRECTOR Class - ERROR Device testing

Hi, im currently testing my app with my iphone device, but this code is giving me an error:

DIRECTOR Class -ERROR.

Failed to execute new (params) function on ‘mainmenu’

here is the code

[blockcode]
module(…, package.seeall)

–====================================================================–
– SCENE: [NAME]
–====================================================================–

–[[

  • Version: [1.0]
  • Made by: [name]
  • Website: [url]
  • Mail: [mail]

******************

  • INFORMATION
    ******************

  • [Your info here]

–]]
new = function (params)


– Groups

local localGroup = display.newGroup()


– Your code here

display.setStatusBar(display.HiddenStatusBar)
local physics= require (“physics”)
require “sprite”
physics.start()

– Main Menu View
local Mainmenubg
local Logo
local Startbutt
local Menuview = display.newGroup()

–functions
local Main={}
local Mainmenulisters={}
local Showstoryboard={}
local charSheet
local charSet

local musicamain=audio.loadStream(“Introduccion.mp3”)

– Main
function Main()
charSheet= sprite.newSpriteSheet(“logoanim.png”,580,380)
charSet= sprite.newSpriteSet(charSheet,1,4)
sprite.add(charSet,“logear”,1,8,2500,1)
Mainmenubg= display.newImageRect(“Mainw.png”, 640, 960)
Mainmenubg.x = 320; Mainmenubg.y = 480
Logo=sprite.newSprite(charSet)
Logo.x=display.contentWidth/2
Logo.y=200
Logo:prepare(“logear”)
Logo:play()
Startbutt= display.newImage(“Button.png”,display.contentCenterX-188,display.contentHeight+40)

audio.play(musicamain, { loops=-1})

transition.to(Startbutt,{time=500,y =(display.contentHeight/2)+100})

localGroup:insert(Mainmenubg)
localGroup:insert(Logo)
localGroup:insert(Startbutt)
Mainmenulisters(“add”)
end
function Showstoryboard()
director:changeScene( “Storyboard1”, “fade” )
end
function Mainmenulisters(action)
if (action==“add”)then
Startbutt: addEventListener(‘tap’,Showstoryboard)

end
end
Main()

— CODE —


– MUST return a display.newGroup()

return localGroup

end
[/blockcode] [import]uid: 174027 topic_id: 30439 reply_id: 330439[/import]