Updated iostream implementation, new function getInput(wait for enter)