adds some minor formatting and debugging improvements