ported benchmarks and examples back to v1

The generated files should be well-formatted and readable: add indentation and newlines