Change filenames to magazine and improve mag index