Finalized comments in the artifact_collect code

It is now ready for integration into the real main function.