move conversion logic out of main(), remove some debugging, handle errors more gracefully.
move conversion logic out of main(), remove some debugging, handle
errors more gracefully.

mehulsbhatt/gollector-monitors,mehulsbhatt/gollector-monitors,gollector/gollector-monitors,gollector/gollector-monitors