add comments to runMethods function