Workload generation

Implements #14 
Very good suggestion for improvement, but is best for a separate issue, see #20.