fixed example issues; improved example output