debugged style scanner, paragraph formatting working so far.