Added crc32 checksum and random serial generator functions.
Daemon and GUI will only run one instance now.