added error checking
changed name of get_resource_of_type method to get_resource_id_of_type
Created File