Add a helper method for printing an object to its RPSL syntax.
Cleanup main.