First rough implementation of documents identifiers... still work in progress...