Removed per-profile checksum; added global checksum

This project doesn't need per-profile checksums. Implemented a global
checksum to verify data, and if not valid, reset all data.

Changed function definition formatting to be consistent.