A library for managing KAF documents