added prettyprint functionality for apidocs