emodel eo: Fixed emodel eo file generation.
emodel eo: Added legacy as null and also added events declaration.