Preparing the main structure of file