added fs.read and fs.write lines of code