Change type in EApplication.addObject()

and a few little clearance