replaced ifstreams with stringstreams
Merge pull request #2 from dguest/sstream_in

replace ifstreams with stringstreams