final version (for now). problems fixed and able to read files!