Improved migration script and added readme