Implements a pretty printing algorithm for readable structure
