Support for writing/reading from files; updated README with examples of usage given new file functionality