Improvements to examples/petabricks