Added improved logging and fixed bugs in Article export.