Moved all file dependent code to file_handling to prepare for adding
nfile class