Signature improvements

Hi

Several improvements and one serious bugfix (in Added the 'active' marker...)

Improvements are for more powerful and flexible signatures. With the "entry level" signatures still as simple as possible.