model functions

- typedefs
- pointer variables
- io_setup: registration function
WIP: model function hooks