Added Mains and Socket

need to add args and finish the methods(createNode, findBranches, move).