sign implemented
DONE:
-the loops and configs sign is calculated
TODO:
-sort out "sign" problem