Fixed run-flex script to add the appropriate missing ending comment blocks