Added ability to input into the console

Added input ability to the console. Also fixed Subprocess to receive
stdout and stderr in sequence