Some changes on migration scripts
Final checks
Numerous bug fixes