Added some files and fixed fstream references