split function rewrited, added setting IP,PORT,ID through program arguments

Denis, be happy!