Prefix output with a "Generated by psc version X.Y.Z" comment

Resolves #557 

Changes by @co-dh consolidated into a single commit.