CQM-43 Improved pretty priting cqosgi listing

Improved quality of code for cqosgi machine-friendly and user-friendly pretty printed mode