Made new API::set_exclude_allowed() setup method. Also added error handling if set_exclude_allowed was not allowed for api. Need to document this in README.