replaced panic with log.Fatal, fixed exported Migration and Config structs