Improved REPL output and made bad channel indices return null