fixed order of ouput for hidden files, and fixed overall output formatting