bug fixes
SetIDCommand and model improvements.
Merge remote-tracking branch 'origin/master'