changed up some stuff and made the directory and file a full File object for use
changed up some stuff and made the directory and file a full File object for use