Header function implemented with file_list

-implementation successful
-warnings fixed, no more warnings :)
-minor errors fixed