added migration feature
Merge pull request #70 from twobraids/rewrite-write2013

added migration feature