fixed sorting
fixed sorting
some methods moved to SemSigUtils
Merged some methods
fix
added new parameters