Stocks fell sharply on Friday, but ended the week with double-digit gains.