Added file IO examples and a test file