refactor to use external info
Merge pull request #5 from chuwa/samsonw/add_signature_script

READY: Refactor signature script to use external info