added tcp code for robot and stated robot function more documenttion in the future