gold ends up for the week, but down for the month