Added buffer and readFileSync feature