Fix #69 add file mode to examples
Merge pull request #70 from jhx/issue_69_add_file_mode_to_examples

Fix #69 add file mode to examples