comment formatting and expansion