Add examples for writing file and passing a file through
Update README.md
Merge pull request #6 from porglezomp/master

Improve documentation and examples