Cleaning files and create the correct structure