changed req and out parameters to use stdin and stdout. Started to work on runTransaction