updated variable names
updated file_load function