bfosterjr: added crc, code cleanup, minor tweaks