renamed runCommand to runExternalCommand for clarity, added comments and a sample command file