Changed the urls for the irods requests and fixed a small issue.
Small issue - function got lost on the way.