Revert "minor fix"

This reverts commit 446768eca198e4cd2369c39a97c42251b5b5e2cd.
Revert "Small fix to run-examples script."

This reverts commit 9439ea345899ada30bdcbb11d258ee8e15286c4c.
Addresses code reivew comments.