Added frame checksum validation. Minor tweaks.