fixed errors found by go vet
removed seperflous 'panic(unrechable)' calls