Started working on Socket -Terminal communication, implemented NioBuffer