Javadoc added and revision on CountingInputStream