Generate.py now prints commandlines

Added --test option to Generate.py
--test parameter only prints commandlines without executing them
Fixed Generate.py so it works on Linux
Generate.py modified to create plots at --path
if --outdir not specified