Code reformat: split library names into separate lines

make git life a bit easy
Signal-related function implementations moved to separate file