added writing and reading from file
Merge pull request #1 from levagls/feature/yaml

added writing and reading from file