Added code to read files using an input stream
Added test cases for existing classes.