moved function to common lib

… to be able to use it with writings (not only letters)
fixed display of biblStruct within witness