Added file mode, and created example for this mode