Supporting I/O interactions with remote command

This provides a new feature supporting interactions with the remote command. 
Some API classes have been changed.