create writer + modified spectro

we can now write in files datas that we need to create the world
the spectro matrix was wrong, now it should work well