Add a pretty print function, useful for debugging