add setProperties()
Merge pull request #20 from effy/master

batch saving all properties using setProperties()