Improved some docs and debug-output and fixed some bugs introduced by upgrading openphoto-lib.