Added variable substitution in Notes.
Cleaned up circular dependency between Utils and Model.