Matadata writing library