updating packages definition, title spacing and numberwithin definitions.