formatting and code example updates