almost finished ktx writer, key value pairs is still missing