added a command to migrate an existing schema to a new version.
added some documentation