emulation running again. Fixed a bug

emulation of token buffer working again
fixed a bug in m_commandModel creation