Misc fixes to sig_gen.py
Merge pull request #253 from debugger22/miscfix

Misc fixes to sig_gen.py