Added doc for pad function.