Deleted plot in example (which should be renamed benchmark) and minor memory/performance optimization