Restructures all files