update to add new style to filewriter and directories to file reader