Improved docs, more logging and improved pdb vs cif test, see #162