solved a formatting problem
added logging functionality and authentication of the source url