emodel: added basic compilation schema - it doesn't mean the code runs but we can already test syntax and so.
emodel: fixed unterminated ifdef (header guardian)
emodel: fixed function signatures and typo.