Make model objects serializable
Merge pull request #26 from cyrille-leclerc/master

enhance demo