Added error reporting to shell.go; removed shell_test.go