Merge branch 'hotfix/fix_sort_print'
Fixed printing to file
Merge branch 'hotfix/check_header_output' into develop