added model update function
Added support for deep references