Link against UUID
Check for correct magic number
Partial refactoring
Check for valid data files. Implements #224