made Console.pushToInputStream public
added test to show how scripts can run with low level api
fixed checkstyle