added handling of reps/files and bitstreams to the create and retrieve methods