Fix bugs in runner

fix gen script amount logging
fix signal handler interface problem
fix type translation
Merge pull request #16 from MikeLien/v1.0

Fix bugs in runner