Fix several bugs in SignatureApplication. Need to fix some tests
Several bug fixes
Fix several bugs