finalizing files and formatting