[minor] converted indentation to spaces.
[minor] substituted DECLARE with DEFAULT bc it allows external overwrite.
reimplemented signature extraction for considerable speedup.