Added file pointer member and Close function