extract file IO code to separate class
add flush method
write casper/phantom errors to report file
moved to 0.1.0