Simplify processing of trailing 4 bytes; this eliminates several magic numbers Document other magic numbers and suppress the checkstyle warnings