Compress method is almost done but it's in the main. Also, the array with the frequences wasn't added to the file.