Prefix output with a 'Generated by psc version X.Y.Z' comment #557

Resolves #557 

Changes by @co-dh with some modifications.