Add debug flag to runex. Fixes #18