Added return value to generated docs. Fixed perf counter metrics.