updated api docs and added catch for invalid urls