[CB-2715] Simplified readAsBinaryHelper.

Also fixed some comments and other minor things.