Pass needed objects to functions
Merge pull request #9 from mrloop/string-io

Pass needed objects to functions