ranks raise exception if lookup isnt valid
added docs to ranks and vector field