added docs for bag