modified output to desired columns
Wrapped codes inside functions in centroidInfer.py