cli test fix
test fix, add file writing to all file types
Merge pull request #23 from cbyn/alex

Alex