Man linked to 5 killings in 2 states makes court appearance