sctp: Code refactoring, output/logging changes, minor fixes