Performance improvements and add copyToStream method with test.
Merge pull request #10 from bryce-anderson/master

Performance improvements and add copyToStream method with test.