Added more javadoc comments, test cases for Reader