Market ends the week higher on improved demand