Fix prettyPrintType and update docs #174