Switch from hard-coded signal type id to automatic type id

Specifying typ=-1 for signal samples the code now automatically assigns type id's (first implemented in #114)
All config files were changed to use typ=-1. 
Also the code does not rely anymore on type id's.