Adding license header, unit test for reading preferences archive.