Javadocs and improved tests for BitGroupInputStream