use readYAML helper functions, fixes #130
Merge pull request #155 from youreddy/readYAMLBug

use readYAML helper functions, fixes #130