Added Solr id to indexing message about skipped document message
Base64-encode headings to avoid problems with line breaks.
Added comments.
More comments.