Fixed the readFile class, changed the function to find a temp directory in *nix, renamed some variables so that they're easier to debug.