Remove now impossible and not used often 24 bit read.
Make use of short cut block syntax when opening a file.
Remove now unneeded casts.