Library-based implementation of the Key-value Provenance Model (KVPM)