updated code to pull files from irods

Need to fix few errors!