Added pdf url counter. Cleaned up logging
Cleaned up logging